package com.wanwu.channel.remote.allinpay.http.resp;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName TLQueryResp
 * @Description 通联交易查询返回
 * @Author husheng
 * @Date 2020-01-15 21:02
 */
@Data
public class TLQueryResp extends TLBaseResp{

    private static final long serialVersionUID = 7528789768309195642L;

    //支付渠道交易单号
    @JSONField(name = "chnltrxid")
    private String channelTrxId;

    //商户订单号
    @JSONField(name = "reqsn")
    private String reqSn;

    //交易类型
    @JSONField(name = "trxcode")
    private String trxCode;

    //交易金额
    @JSONField(name = "trxamt")
    private String trxAmt;

    //交易状态
    @JSONField(name = "trxstatus")
    private String trxStatus;

    //支付平台用户标识
    @JSONField(name = "acct")
    private String acct;

    //交易完成时间
    @JSONField(name = "fintime")
    private String finTime;

    //错误原因
    @JSONField(name = "errmsg")
    private String errorMsg;

    //渠道子商户号
    @JSONField(name = "cmid")
    private String cmId;

    //渠道号
    @JSONField(name = "chnlid")
    private String channelId;

    //原交易金额
    @JSONField(name = "initamt")
    private String initAmt;

    //手续费
    @JSONField(name = "fee")
    private String fee;

    private String queryResp;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}
